<?php
 
namespace models\entities;
use classes; 
/**
 * @Entity(repositoryClass="models\repositories\BerkasLasRepository")
 * @Table(name="berkas_las")
 */
class BerkasLas {
 
/**
 *  @Id
 *  @OneToOne(targetEntity="Berkas", cascade={"persist"})
 *  @JoinColumn(name="id", referencedColumnName="id")
 */
	protected $id;
	
/**
 * 
 * @ManyToOne(targetEntity="KategoriAsistensi", fetch="EAGER")
 * @JoinColumn(name="kategori_asistensi_id", referencedColumnName="id")
 */
	protected $kategoriAsistensi;	
 
/**
 * 
 * @ManyToOne(targetEntity="Media", fetch="EAGER")
 * @JoinColumn(name="media", referencedColumnName="id")
 */
	protected $media;	
  
/**
 * @Column(name="jenis_asistensi", type="integer")
 */
	protected $jenisAsistensi;

/**
 * 
 * 
 * @Column(name="from_date", type="datetime")
 */
	protected $fromDate;
	
/**
 * 
 * 
 * @Column(name="to_date", type="datetime")
 */
	protected $toDate;			

	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}

	public function setJenisAsistensi($jenisKegiatan){
		$this->jenisAsistensi = $jenisKegiatan;
	}
	
	public function getJenisAsistensi(){
		return $this->jenisAsistensi;
	}
	
	public function setMedia($media){
		$this->media = $media;
	}
	
	public function getMedia(){
		return $this->media;
	}
	
	public function setKategoriAsistensi($kat){
		$this->kategoriAsistensi = $kat;
	}
	
	public function getKategoriAsistensi(){
		return $this->kategoriAsistensi;
	}
	
	public function setFromDate($date){
		$this->fromDate = $date;
	}
	
	public function getFromDate(){
		return $this->fromDate;
	}
	
	public function setToDate($date){
		$this->toDate = $date;
	}
	
	public function getToDate(){
		return $this->toDate;
	}	
}